package cn.zjweu.domain;

/*
 * 用户购物车
 * */
public class UserCart {
    /*用户ID*/
    private Integer userId;
    /*菜品ID*/
    private Integer dishId;
    /*订购数量*/
    private Integer count;

    public UserCart() {
    }

    public UserCart(Integer userId, Integer dishId) {
        this.userId = userId;
        this.dishId = dishId;
    }

    public UserCart(Integer userId, Integer dishId, Integer count) {
        this.userId = userId;
        this.dishId = dishId;
        this.count = count;
    }

    @Override
    public String toString() {
        return "UserCart{" +
                "userId=" + userId +
                ", dishId=" + dishId +
                ", count=" + count +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
